<!DOCTYPE html>
<html>

	<head>

		<meta charset="utf-8" />
		<meta name="Keywords" Content="婚礼包办,婚礼策划，爱情,蜜月,婚礼用品">
		<meta name="Description" Content="为用户提供婚礼策划、婚车租赁、婚纱摄影、蜜月旅行以及周边服务商品的商城，为用户提供一站式解决方案，解决用户在婚礼各个环节中遇到的困难。">
		<link rel="shortcut icon" type="image/x-icon" href="../img/static/shemher.ico" media="screen" />
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>相合网_高品质婚礼服务</title>
		<link rel="stylesheet" type="text/css" href="../css/mod/base.css" />
		<link rel="stylesheet" type="text/css" href="../css/mod/header.css"/>
		<link rel="stylesheet" type="text/css" href="../css/mod/footer.css"/>
		<link rel="stylesheet" type="text/css" href="../css/page/hotel.css" />
	</head>

	<body>
		<!--S头部-->
		<div class="header">
			
		</div>
		<!--E头部-->
		
		<!--S轮播导航-->
		<div class="slider">
			<ul>
				<li>
					<a href=""><img src="../img/online/1920x600b.png" alt="轮播图" title="轮播" /></a>
				</li>
				<li>
					<a href=""><img src="../img/online/1920x600r.png" alt="轮播图" title="轮播" /></a>
				</li>
				<li>
					<a href=""><img src="../img/online/1920x600y.png" alt="轮播图" title="轮播" /></a>
				</li>
				<li>
					<a href=""><img src="../img/online/1920x600b.png" alt="轮播图" title="轮播" /></a>
				</li>
				<li>
					<a href=""><img src="../img/online/1920x600r.png" alt="轮播图" title="轮播" /></a>
				</li>
				<li>
					<a href=""><img src="../img/online/1920x600y.png" alt="轮播图" title="轮播" /></a>
				</li>
			</ul>
		</div>
		<!--E轮播导航-->

		<!--S面包屑导航	-->
		<div class="crumb wrap">
			<a href="" class="mod-info">首页 > </a>
			<a href="" class="mod-info"> 婚礼用品 </a>
		</div>
		<!--E面包屑导航	-->
		
		<div class="wrap">
			<!--S婚礼用品选择-->
			<div class="wedding-goods pb10 clearfix">
				<ul id="wedtypewrap">
					<li>
						<i class="goods-icon"></i>
						<h2 class="mod-tit">婚纱礼服</h2>
						<div class="a-wrap mt10">
							<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>
						</div>
					</li>
					<li>
						<i class="goods-icon"></i>
						<h2 class="mod-tit">婚纱礼服</h2>
						<div class="a-wrap mt10">
							<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>
						</div>
					</li>
					<li>
						<i class="goods-icon"></i>
						<h2 class="mod-tit">婚纱礼服</h2>
						<div class="a-wrap mt10">
							<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>
						</div>
					</li>
					<li>
						<i class="goods-icon"></i>
						<h2 class="mod-tit">婚纱礼服</h2>
						<div class="a-wrap mt10">
							<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>|<a href="">婚纱</a>
						</div>
					</li>
				</ul>
			</div>
			<!--E婚礼用品选择-->
			<!--S选择框-->
	     	<div class="rank mod-info clearfix">
				<div class="fl select-part-tit">
					<span class="select-tit">排序:</span>
				</div>
				<div class="fl select-part-wrap" id="selectRank-wrap" >
					<a href="javascript:void(0);" class="select-part">综合</a>
					<a href="javascript:void(0);" class="select-part up">收藏</a>
					<a href="javascript:void(0);" class="select-part down">执行</a>
					<a href="javascript:void(0);" class="select-part active">最新</a>
				</div>
				<div class="fr page-shift">
					<span class="pre-btn"></span>
					<span class="page-nownum">1</span>
					<span class="page-allnum">/ &nbsp;4</span>
					<span class="next-btn"></span>
				</div>
			</div>
			<!--S套餐详情-->
			<div class="use-wrap clearfix mt10" id="uselistwrap">
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
				<div class="photo-info fl">
					<div class="photo-info-img">
					  <a href="">
						<img src="../img/online/280x300.png" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
					 </a>
					</div>
					<div class="photo-info-txt">
						<h2 class="mod-tit">商品名字巴拉巴拉</h2>
						<p class="mod-meta mt10">销量：21 &nbsp; &nbsp; 收藏：48</p>
						<p class="mod-price mt10">&yen;299</p>
					</div>
				</div>
			</div>
			<!--E商家策划列表-->

			<!--S页数-->
			<div class="page-wrap mt60 tc">
				<span class="pre-btn first-btn"></span>
				<span class="pre-btn opre-btn"></span>
				<span class="page-btn-wrap">
				<span class="page-btn active">1</span>
				<span class="page-btn">2</span>
				<span class="page-btn">3</span>
				<span class="page-btn">4</span>
				</span>
				<span class="next-btn onext-btn"></span>
				<span class="next-btn last-btn"></span>
				<span class="gopage-wrap">
					<input type="text" name="gopage" id="gopage" value="" /><span class="page-btn go">GO</span>
				</span>
			</div>
			<!--E页数-->
			
		</div>
		<!--E选择框-->
		</div>
		<!--脚部部分-->
		<div class="footer mt100">
		</div>
		<!--脚部部分-->
		<!--脚部部分-->
		<script src="../js/mod/jquery-1.9.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/mod/mod.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/mod/page.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/mod/pageActive.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/mod/artTemplate.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			/*数据商家筛选框*/
			 myAjax("xhwed.php/Articles/articlesClassify",planScreen ) 
			function planScreen(data){
				var  data = JSON.parse(data);
				var html =template("wedtypeJs",data);
				 document.getElementById('wedtypewrap').innerHTML = html;
				var html1 = template("selectJS",data);
				document.getElementById('selectRank-wrap').innerHTML = html1;
				
				 $(".a-wrap a").click(function(){
				 	/*渲染列表*/
				 	$(".a-wrap a").removeClass("active");
				 	$(this).addClass("active");
				 	listAjax("xhwed.php/Articles/articlesList",planList,PAGE.activePage,getUseListJson($(this)));
		        })
				 
			 	/*排序点击事件*/
				$(".rank .select-part-wrap .select-part").click(function(){
					if($(this).attr("data-type")=="1"){//判断是否可以升降排序
						if($(this).hasClass("up"))
							$(this).addClass("active down").removeClass("up").siblings().removeClass("active up down");
						else if($(this).hasClass("down"))
							 $(this).addClass("active up").removeClass("down").siblings().removeClass("active up down");
						else 
							$(this).addClass("active up").siblings().removeClass("active up down");
					}else{
						$(this).addClass("active").siblings().removeClass("active up down");
					}
				});
				
  					/*点击获取ajax*/
				 $(".select-part,.page-wrap").click(function(){
				 	listAjax("xhwed.php/Articles/articlesList",planList,PAGE.activePage,getUseListJson($(".a-wrap a.active").eq(0)));
				 });				 
			 };
          listAjax("xhwed.php/Articles/articlesList",planList,1);
         /*渲染list列表*/
		function listAjax(ajaxUrl,drawMethod,postPage,postJson){
			 $.ajax({
				type:"post",
				url:serviceIP+ajaxUrl+"/p/"+postPage,
				dataType:"json",
				data:postJson,
				async:true,
				success:drawMethod
			});
		}
		  /*渲染商家列表的函数*/
		 function planList(data){
		 	if(data.result.totalPages!="0"){
		 		console.log(data);
		     	var html = template('uselistJs', data.result);
		        document.getElementById('uselistwrap').innerHTML = html;
				/*渲染页数*/
				 PAGE.maxPage=parseInt(data.result.totalPages);
				 PAGE.activePage=parseInt(data.result.nowPage);
				 PAGE.showPage=PAGE.maxPage<5?PAGE.maxPage:5;
				 PAGE.init();
				 /*渲染小分页*/
				 drawPageShift(parseInt(data.result.nowPage),parseInt(data.result.totalPages));
			 }else
			 	alert("没有符合筛选的条件");
		 }
		 
		  function getUseListJson(obj){
		  	 var selectJson={};
				  	 if(obj.attr("data-id"))
				  	 {
				  	 	selectJson["classifys"]=parseInt(parseInt(obj.attr("data-id")));
				  	 }
				 	 /*排序的选择框*/
				 	var rankSelect = $(".rank .select-part-wrap .select-part.active");//获取选中的元素
				 	 selectJson["screens"]=parseInt(rankSelect.attr("data-id"));
				 	if(rankSelect.attr("data-type")=="1")
				 	{
				 	  selectJson["ifdown"]=rankSelect.hasClass("up")?1:2;
				 	}
				 	console.log(selectJson);
				 	return selectJson;
	           }
		
		</script>
		<script type="text/html" id="uselistJs">
			{{each articleslist as item index}}
			<div class="photo-info fl">
				<div class="photo-info-img">
				  <a href="javascript:void(0)">
					<img src="{{item.pic}}" alt="婚纱摄影案例图片" title="婚纱摄影案例图片"/>
				 </a>
				</div>
				<div class="photo-info-txt">
					<h2 class="mod-tit">{{item.title}}</h2>
					<p class="mod-meta mt10">销量：{{item.sales_volume}} &nbsp; &nbsp; 收藏：{{item.collection_mun}}</p>
					<p class="mod-price mt10">&yen;{{item.shemher_price}}</p>
				</div>
			</div>
			{{/each}}
		</script>
		<script type="text/html" id="wedtypeJs">
		  {{each result[1].con as item index}}
			<li>
				<i class="goods-icon"><img src="{{item.pic}}"/></i>
				<h2 class="mod-tit" data-id="{{item.nameid}}">{{item.name}}</h2>
				<div class="a-wrap mt10">
				{{each item.pid as piditem pidindex}}
				 <a href="javascript:void(0);" data-id="{{piditem.nameid}}">{{piditem.name}}</a>|
				{{/each}}
				</div>
			</li>
		 {{/each}}
		</script>
		<script type="text/html" id="selectJS">
		  	{{each result[0].screens as item index}}
			  	{{if index < 1}}
				<a href="javascript:void(0); " class="select-part active" data-id="{{item.id}}" data-type="{{item.ifup}}">{{item.name}}</a>
				{{else}}
				<a href="javascript:void(0); " class="select-part" data-id="{{item.id}}" data-type="{{item.ifup}}">{{item.name}}</a>
				{{/if}}
			{{/each}}
		</script>
	</body>

</html>